/* read_image:  any format, read image from a given file directory, and set RGB 3-channel as default color
 * input: const char * filename,  int iscolor CV_LOAD_IMAGE_COLOR or CV_LOAD_IMAGE_GRAYSCALE or
 *                                            CV_LOAD_IMAGE_ANYCOLOR
 * output: pointer to IplImage
 */
IplImage* read_image(const char* filename, int iscolor = CV_LOAD_IMAGE_COLOR);

/* save_image: save to any format, save the second parameter image as filename current working directory
*  input: const char* filename, const CvArr* image
*  return value: success:1, failed: 0
*/
int save_image( const char* filename, const CvArr* image );


CvCapture* read_video( const char* filename );


IplImage* resize_image(const CvArr* src, int Width, int Height,  int depth, int channels,  int interpolation=CV_INTER_LINEAR ); //bilinear interpolation (used by default)